Integrand size = 29, antiderivative size = 130 \[ \int \cot ^5(c+d x) \csc ^2(c+d x) (a+b \sin (c+d x))^2 \, dx=-\frac {2 a b \csc (c+d x)}{d}-\frac {\left (a^2-2 b^2\right ) \csc ^2(c+d x)}{2 d}+\frac {4 a b \csc ^3(c+d x)}{3 d}+\frac {\left (2 a^2-b^2\right ) \csc ^4(c+d x)}{4 d}-\frac {2 a b \csc ^5(c+d x)}{5 d}-\frac {a^2 \csc ^6(c+d x)}{6 d}+\frac {b^2 \log (\sin (c+d x))}{d} \]
[Out]
Time = 0.11 (sec) , antiderivative size = 130, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.103, Rules used = {2916, 12, 962} \[ \int \cot ^5(c+d x) \csc ^2(c+d x) (a+b \sin (c+d x))^2 \, dx=\frac {\left (2 a^2-b^2\right ) \csc ^4(c+d x)}{4 d}-\frac {\left (a^2-2 b^2\right ) \csc ^2(c+d x)}{2 d}-\frac {a^2 \csc ^6(c+d x)}{6 d}-\frac {2 a b \csc ^5(c+d x)}{5 d}+\frac {4 a b \csc ^3(c+d x)}{3 d}-\frac {2 a b \csc (c+d x)}{d}+\frac {b^2 \log (\sin (c+d x))}{d} \]
[In]
[Out]
Rule 12
Rule 962
Rule 2916
Rubi steps \begin{align*} \text {integral}& = \frac {\text {Subst}\left (\int \frac {b^7 (a+x)^2 \left (b^2-x^2\right )^2}{x^7} \, dx,x,b \sin (c+d x)\right )}{b^5 d} \\ & = \frac {b^2 \text {Subst}\left (\int \frac {(a+x)^2 \left (b^2-x^2\right )^2}{x^7} \, dx,x,b \sin (c+d x)\right )}{d} \\ & = \frac {b^2 \text {Subst}\left (\int \left (\frac {a^2 b^4}{x^7}+\frac {2 a b^4}{x^6}+\frac {-2 a^2 b^2+b^4}{x^5}-\frac {4 a b^2}{x^4}+\frac {a^2-2 b^2}{x^3}+\frac {2 a}{x^2}+\frac {1}{x}\right ) \, dx,x,b \sin (c+d x)\right )}{d} \\ & = -\frac {2 a b \csc (c+d x)}{d}-\frac {\left (a^2-2 b^2\right ) \csc ^2(c+d x)}{2 d}+\frac {4 a b \csc ^3(c+d x)}{3 d}+\frac {\left (2 a^2-b^2\right ) \csc ^4(c+d x)}{4 d}-\frac {2 a b \csc ^5(c+d x)}{5 d}-\frac {a^2 \csc ^6(c+d x)}{6 d}+\frac {b^2 \log (\sin (c+d x))}{d} \\ \end{align*}
Time = 0.12 (sec) , antiderivative size = 107, normalized size of antiderivative = 0.82 \[ \int \cot ^5(c+d x) \csc ^2(c+d x) (a+b \sin (c+d x))^2 \, dx=\frac {-120 a b \csc (c+d x)-30 \left (a^2-2 b^2\right ) \csc ^2(c+d x)+80 a b \csc ^3(c+d x)+15 \left (2 a^2-b^2\right ) \csc ^4(c+d x)-24 a b \csc ^5(c+d x)-10 a^2 \csc ^6(c+d x)+60 b^2 \log (\sin (c+d x))}{60 d} \]
[In]
[Out]
Time = 0.42 (sec) , antiderivative size = 117, normalized size of antiderivative = 0.90
method | result | size |
derivativedivides | \(-\frac {\frac {\left (\csc ^{6}\left (d x +c \right )\right ) a^{2}}{6}+\frac {2 a b \left (\csc ^{5}\left (d x +c \right )\right )}{5}-\frac {a^{2} \left (\csc ^{4}\left (d x +c \right )\right )}{2}+\frac {b^{2} \left (\csc ^{4}\left (d x +c \right )\right )}{4}-\frac {4 a b \left (\csc ^{3}\left (d x +c \right )\right )}{3}+\frac {a^{2} \left (\csc ^{2}\left (d x +c \right )\right )}{2}-b^{2} \left (\csc ^{2}\left (d x +c \right )\right )+2 a b \csc \left (d x +c \right )+b^{2} \ln \left (\csc \left (d x +c \right )\right )}{d}\) | \(117\) |
default | \(-\frac {\frac {\left (\csc ^{6}\left (d x +c \right )\right ) a^{2}}{6}+\frac {2 a b \left (\csc ^{5}\left (d x +c \right )\right )}{5}-\frac {a^{2} \left (\csc ^{4}\left (d x +c \right )\right )}{2}+\frac {b^{2} \left (\csc ^{4}\left (d x +c \right )\right )}{4}-\frac {4 a b \left (\csc ^{3}\left (d x +c \right )\right )}{3}+\frac {a^{2} \left (\csc ^{2}\left (d x +c \right )\right )}{2}-b^{2} \left (\csc ^{2}\left (d x +c \right )\right )+2 a b \csc \left (d x +c \right )+b^{2} \ln \left (\csc \left (d x +c \right )\right )}{d}\) | \(117\) |
risch | \(-i b^{2} x -\frac {2 i b^{2} c}{d}-\frac {2 i \left (15 i a^{2} {\mathrm e}^{10 i \left (d x +c \right )}-30 i b^{2} {\mathrm e}^{10 i \left (d x +c \right )}+30 a b \,{\mathrm e}^{11 i \left (d x +c \right )}+90 i b^{2} {\mathrm e}^{8 i \left (d x +c \right )}-70 a b \,{\mathrm e}^{9 i \left (d x +c \right )}+50 i a^{2} {\mathrm e}^{6 i \left (d x +c \right )}-120 i b^{2} {\mathrm e}^{6 i \left (d x +c \right )}+156 a b \,{\mathrm e}^{7 i \left (d x +c \right )}+90 i b^{2} {\mathrm e}^{4 i \left (d x +c \right )}-156 a b \,{\mathrm e}^{5 i \left (d x +c \right )}+15 i a^{2} {\mathrm e}^{2 i \left (d x +c \right )}-30 i b^{2} {\mathrm e}^{2 i \left (d x +c \right )}+70 a b \,{\mathrm e}^{3 i \left (d x +c \right )}-30 a b \,{\mathrm e}^{i \left (d x +c \right )}\right )}{15 d \left ({\mathrm e}^{2 i \left (d x +c \right )}-1\right )^{6}}+\frac {\ln \left ({\mathrm e}^{2 i \left (d x +c \right )}-1\right ) b^{2}}{d}\) | \(256\) |
parallelrisch | \(\frac {-5 a^{2} \left (\tan ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-5 a^{2} \left (\cot ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-24 a b \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-24 a b \left (\cot ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+30 a^{2} \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-30 \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) b^{2}+30 a^{2} \left (\cot ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-30 b^{2} \left (\cot ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+200 a b \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+200 a b \left (\cot ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-75 a^{2} \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+360 \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) b^{2}-75 a^{2} \left (\cot ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+360 b^{2} \left (\cot ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1200 a b \tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1200 a b \cot \left (\frac {d x}{2}+\frac {c}{2}\right )+1920 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right ) b^{2}-1920 \ln \left (\sec ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) b^{2}}{1920 d}\) | \(285\) |
norman | \(\frac {-\frac {a^{2}}{384 d}-\frac {a^{2} \left (\tan ^{16}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{384 d}-\frac {\left (a^{2}-15 b^{2}\right ) \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{96 d}-\frac {\left (a^{2}-15 b^{2}\right ) \left (\tan ^{12}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{96 d}+\frac {\left (2 a^{2}-3 b^{2}\right ) \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{192 d}+\frac {\left (2 a^{2}-3 b^{2}\right ) \left (\tan ^{14}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{192 d}+\frac {\left (3 a^{2}-22 b^{2}\right ) \left (\tan ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{64 d}-\frac {a b \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{80 d}+\frac {19 a b \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{240 d}-\frac {103 a b \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{240 d}-\frac {85 a b \left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{48 d}-\frac {85 a b \left (\tan ^{9}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{48 d}-\frac {103 a b \left (\tan ^{11}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{240 d}+\frac {19 a b \left (\tan ^{13}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{240 d}-\frac {a b \left (\tan ^{15}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{80 d}}{\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{6} \left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{2}}+\frac {b^{2} \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}-\frac {b^{2} \ln \left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}\) | \(369\) |
[In]
[Out]
none
Time = 0.39 (sec) , antiderivative size = 183, normalized size of antiderivative = 1.41 \[ \int \cot ^5(c+d x) \csc ^2(c+d x) (a+b \sin (c+d x))^2 \, dx=\frac {30 \, {\left (a^{2} - 2 \, b^{2}\right )} \cos \left (d x + c\right )^{4} - 15 \, {\left (2 \, a^{2} - 7 \, b^{2}\right )} \cos \left (d x + c\right )^{2} + 10 \, a^{2} - 45 \, b^{2} + 60 \, {\left (b^{2} \cos \left (d x + c\right )^{6} - 3 \, b^{2} \cos \left (d x + c\right )^{4} + 3 \, b^{2} \cos \left (d x + c\right )^{2} - b^{2}\right )} \log \left (\frac {1}{2} \, \sin \left (d x + c\right )\right ) + 8 \, {\left (15 \, a b \cos \left (d x + c\right )^{4} - 20 \, a b \cos \left (d x + c\right )^{2} + 8 \, a b\right )} \sin \left (d x + c\right )}{60 \, {\left (d \cos \left (d x + c\right )^{6} - 3 \, d \cos \left (d x + c\right )^{4} + 3 \, d \cos \left (d x + c\right )^{2} - d\right )}} \]
[In]
[Out]
Timed out. \[ \int \cot ^5(c+d x) \csc ^2(c+d x) (a+b \sin (c+d x))^2 \, dx=\text {Timed out} \]
[In]
[Out]
none
Time = 0.20 (sec) , antiderivative size = 108, normalized size of antiderivative = 0.83 \[ \int \cot ^5(c+d x) \csc ^2(c+d x) (a+b \sin (c+d x))^2 \, dx=\frac {60 \, b^{2} \log \left (\sin \left (d x + c\right )\right ) - \frac {120 \, a b \sin \left (d x + c\right )^{5} - 80 \, a b \sin \left (d x + c\right )^{3} + 30 \, {\left (a^{2} - 2 \, b^{2}\right )} \sin \left (d x + c\right )^{4} + 24 \, a b \sin \left (d x + c\right ) - 15 \, {\left (2 \, a^{2} - b^{2}\right )} \sin \left (d x + c\right )^{2} + 10 \, a^{2}}{\sin \left (d x + c\right )^{6}}}{60 \, d} \]
[In]
[Out]
none
Time = 0.41 (sec) , antiderivative size = 134, normalized size of antiderivative = 1.03 \[ \int \cot ^5(c+d x) \csc ^2(c+d x) (a+b \sin (c+d x))^2 \, dx=\frac {60 \, b^{2} \log \left ({\left | \sin \left (d x + c\right ) \right |}\right ) - \frac {147 \, b^{2} \sin \left (d x + c\right )^{6} + 120 \, a b \sin \left (d x + c\right )^{5} + 30 \, a^{2} \sin \left (d x + c\right )^{4} - 60 \, b^{2} \sin \left (d x + c\right )^{4} - 80 \, a b \sin \left (d x + c\right )^{3} - 30 \, a^{2} \sin \left (d x + c\right )^{2} + 15 \, b^{2} \sin \left (d x + c\right )^{2} + 24 \, a b \sin \left (d x + c\right ) + 10 \, a^{2}}{\sin \left (d x + c\right )^{6}}}{60 \, d} \]
[In]
[Out]
Time = 12.19 (sec) , antiderivative size = 274, normalized size of antiderivative = 2.11 \[ \int \cot ^5(c+d x) \csc ^2(c+d x) (a+b \sin (c+d x))^2 \, dx=\frac {b^2\,\ln \left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}{d}-\frac {a^2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6}{384\,d}-\frac {{\mathrm {cot}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6\,\left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4\,\left (\frac {5\,a^2}{2}-12\,b^2\right )+\frac {a^2}{6}-{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2\,\left (a^2-b^2\right )-\frac {20\,a\,b\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3}{3}+40\,a\,b\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5+\frac {4\,a\,b\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{5}\right )}{64\,d}-\frac {b^2\,\ln \left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+1\right )}{d}+\frac {{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4\,\left (\frac {a^2}{64}-\frac {b^2}{64}\right )}{d}-\frac {{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2\,\left (\frac {5\,a^2}{128}-\frac {3\,b^2}{16}\right )}{d}+\frac {5\,a\,b\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3}{48\,d}-\frac {a\,b\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5}{80\,d}-\frac {5\,a\,b\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{8\,d} \]
[In]
[Out]